package com.young.springboot.basic;

import com.young.springboot.basic.config.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;

@EnableConfigurationProperties(Person.class)
@SpringBootApplication
public class SpringbootBasicApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringbootBasicApplication.class, args);
        Person person = run.getBean(Person.class);
        System.out.println(person);

    }

}
